Space and technology billionaire Elon Musk announced that his term as the chief of the Department of Government Efficiency (DOGE) has come to an end, thanking US President for the "opportunity to reduce wasteful spending".