The Long Island rally was one of several around the country in recent days protesting the president's new policies and executive orders.
Trump's aides have signaled behind the scenes that Musk still reports to White House chief of staff Susie Wiles.
President Donald Trump is preparing to gut the U.S. Education Department to the full extent of his power, directing his administration to slash spending while pressuring employees to quit.