The order sent school districts and others scrambling to determine which federal funds for schools could be stopped.