Court reinstates DOE grant funding in blue states