A federal court on Tuesday heard arguments over whether the Trump administration has attempted to ban transgender service members from the U.S. military.