A federal judge on Friday declined to grant temporary injunctive relief to plaintiffs in two lawsuits challenging the Trump administration’s efforts to detain migrants at Guantánamo Bay.