A Trump administration lawyer told a Massachusetts federal judge Monday that the government’s decision to revoke the visas of hundreds of college students and faculty over their pro-Palestinian speech was not viewpoint discrimination but a response to what it contends are threats to national security.