Donald Trump defended Elon Musk after part of his administration criticized the billionaire's handling of federal employees.