Federal judge warns against ‘downward spiral’ for First Amendment after administration threatens to revoke visas over pro-Palestine views