Johnson and Johnson and Goldman Sachs both reported earnings that topped Wall Street estimates.