Goldman Sachs Group Inc.’s co-head of Spain and Portugal is leaving the bank after he wrote scathing political articles about US President Donald Trump and Spanish Prime Minister Pedro Sánchez.