An appeals court ruled that the Trump administration violated the Constitution by kicking out transgender people serving in the military.