Judge Mary S. McElroy, who has twice blocked President Donald Trump’s efforts to freeze EPA, Energy Department, and other grants, has a history of Democrat activism.