The U.S. Education Department said Thursday that it is weighing whether to allow states to use federal funds to purchase guns for schools, prompting a storm of criticism from Democratic lawmakers and educators.