President Donald Trump has told his Cabinet and inner circle that Elon Musk is stepping back from his government role.