Goldman’s earnings and revenue beat expectations, but not by as much as investors had hoped.