The National Rifle Association on Friday filed for bankruptcy, a sudden development that could help the gun rights group escape a lawsuit by New York's attorney general seeking its dissolution.

The NRA filed for Chapter 11 protection in federal bankruptcy court in Dallas, and said it plans to reincorporate in Texas to escape "a corrupt political and regulatory environment" in New York, where it is now incorporated.

"Texas values the contributions of the NRA, celebrates our law-abiding members, and joins us as a partner in upholding constitutional freedom," Chief Executive Wayne LaPierre said in a letter to members. "We seek protection from New York officials who illegally abused and weaponized the powers they wield against the NRA and its members."