A lawsuit filed in federal court in Boston marks a latest push by immigrant advocates to challenge the Trump administration’s moves to tighten legal migration pathways, amid a decline in naturalizations overall.