A federal judge in Seattle blocked the government from withholding funds from hospitals offering gender-transition treatment to minors.