A US federal judge blocked Health Secretary Robert F. Kennedy Jr. from threatening hospitals with funding cuts over gender-affirming care for trans youth.