Virginia Tech violated federal law by not issuing a timely warning to students at the start of the massacre that left 32 people dead on campus, the U.S. Department of Education said in a ruling that could result in financial penalties against the university.