U.S. District Judge George O'Toole in Boston sided with three unions representing government workers who sued last year after the administration began asking applicants for nonpartisan federal jobs to write essays explaining how they would help advance Trump's policies and executive orders.