A U.S. court has ruled in favor of Washington State, blocking a federal attempt to restrict gender-affirming care for transgender youth.