A U.S. district judge in Maryland blocked the Department of Government Efficiency from accessing personal data from the Social Security Administration—delivering the latest legal blow to President Donald Trump and the controversial Elon Musk-led efforts to reduce government inefficiencies and make cuts.