A federal judge blocked the Trump administration’s rushed bid to collect race-based admissions data from public universities in 17 states.