A federal judge granted a preliminary injunction on Monday blocking the Defense Department from taking action against a group of 35 Navy sailors who had refused to get a coronavirus vaccine, raising questions on how it might shape the Pentagon’s requirement that all U.S. troops get vaccinated.