US stocks gain 1% as earnings offset Fed policy uncertainty