Mexico's Congress has approved freedom of information legislation that will allow public access to data from almost any entity that receives government funding.

The measure was passed Thursday in the lower house on a 264-68 vote and now goes to the president for his signature.

President Enrique Pena Nieto wrote in his Twitter account that the law "will strengthen the accountability of the Mexican government and combat corruption."

Mexicans can currently use freedom-of-information requests to get data from government agencies. But the new law now also covers requests to unions, political parties and government-supported councils and commissions.

The law also sets down rules for the classifying of information as confidential or a state secret, designations that have allowed some agencies to skirt information access rules.