Federal Reserve officials knew for months about bonuses at American International Group but failed to tell the Obama administration, according to government and company officials, exposing problems in a relationship that is vital to addressing the financial crisis.