AUSTIN — State leaders on Thursday were threatening to sue the federal government over a restriction Congress is placing on $830 million in education funds for Texas. The issue pits all of the state’s major education groups against state legislative leaders and involves Texas’ share of funding for emergency education jobs in a bill expected to get final congressional approval Tuesday. Some Texas educators and education groups do not trust state and legislative leaders because of how they treated the federal stimulus money last year. Because Texas faces a severe budget shortfall next year, some educators are worried federal funds intended for education will again get diverted to fill budget gaps. “We urge you to prevent history from repeating itself and ensure that any funds Texas receives go to help Texas schools, teachers and students,” Texas educators said in a letter to congressional leaders. About 40 Texas school superintendents and seven education groups, including the Texas Association of School Boards and the Texas Association of School Administrators, signed the letter.