Mexico's federal government says it will file challenges with the country's Supreme Court against laws enacted in two states that purport to be anti-corruption, but that critics say could protect their outgoing governors.

State congresses in the eastern states of Veracruz and Quintana Roo have in recent weeks passed laws or adjusted existing ones that they say will help combat corruption.

But federal Deputy Attorney General Salvador Sandoval said Monday that the state laws contravene a national anti-corruption system. Critics have said the laws would allow the naming of anti-corruption prosecutors with loyalty to the outgoing governors.

Both governors are from the ruling Institutional Revolutionary Party, which lost both states in June elections. President Enrique Pena Nieto has been accused by critics of not being committed to fighting corruption.