Senior government officials said Paulson helped craft rescue programs for financial firms , though he was not sure he had an unquestionable legal basis for the initiatives , including the bailouts of the failing investment bank Bear Stearns in March and the wounded insurance giant American International Group in September .