Texas violated federal law by failing to identify and educate students with disabilities and deliberately working to decrease the number of students enrolled in special education programs, the U.S. Department of Education said in a report on Thursday.

The report concluded that Texas ran afoul of federal law by failing to locate students in need of special education, failing to ensure free public education was made available to children with disabilities and failing to adequately supervise and monitor the state's special education program.

Texas has the second-largest U.S. public school system, with about 5 million students.

"Far too many students in Texas had been precluded from receiving supports and services under the Individuals with Disabilities Education Act," U.S. Education Secretary Betsy DeVos said in a statement.

The policies of the Texas Education Agency (TEA) drew federal scrutiny after a 2016 investigation by the Houston Chronicle newspaper. The Chronicle revealed that many school districts delayed or denied services to special education students to meet an agency benchmark of capping their enrollment in the systems at 8.5 percent of the student population.

Providing an education for students with disabilities is costlier than for other students. The policy saved the state agency billions of dollars but denied education services to children with autism, dyslexia, attention deficit hyperactivity disorder, epilepsy, mental illnesses, speech impediments, traumatic brain injuries, blindness and deafness, the newspaper said.

The stinging assessment from Republican President Donald Trump's administration prompted Republican Texas Governor Greg Abbott on Thursday to order the state's education agency to take immediate steps to fix the problem.

"The past dereliction of duty on the part of many school districts to serve our students, and the failure of TEA to hold districts accountable, are worthy of criticism," Abbott said in a statement.

The Texas Education Agency said it will work with the governor to "take swift and immediate action to address findings in the report."

The Chronicle reported that the practice of denying and delaying special education lasted for more than a decade, starting in 2004. After the policy was implemented, the rate of Texas children receiving special education plummeted from near the national average of 13 percent to the lowest in the country, the newspaper reported.

(Reporting by Jon Herskovitz; Editing by Colleen Jenkins and Will Dunham)