Court ruling supports ban on gender-affirming care for kids