Plaintiffs in Maryland and Massachusetts alleged that the Trump administration had overstepped constitutional bounds in seeking to abolish the Education Department.