The Levi-Malcev theorem for graded CR Lie algebras