A Massachusetts federal judge on Monday denied the Trump administration’s bid to foreclose discovery and a July 7 bench trial in a free-speech lawsuit by academic organizations challenging deportations of some of their members apparently based on their pro-Palestinian views.