A federal judge ruled that the Trump administration can resume sharing some Medicaid data with immigration authorities.