AIG will pay $35 million for violations related to former subsidiaries doing business in New York without a license.