A Massachusetts federal judge will begin hearing testimony Monday in a challenge by academic organizations to the Trump administration’s visa revocations and removals of noncitizen faculty and students who have expressed pro-Palestinian views, in one of the first trials over the president’s second-term policies.