The departure of the Marines follows the removal of hundreds of other National Guard soldiers who were part of President Trump’s deployment to Los Angeles.