The president and Musk celebrated the approval even as Republicans were handed a huge defeat in a state Supreme Court race.