A ruling on Friday sets up the next chapter of the legal battle between the Trump administration and stakeholders in academic research.