A Massachusetts judge has halted a Trump administration test for Medicaid work exemptions, ruling it would wrongly block chronically ill people from care.