Friedrich Merz has become Germany's new chancellor after the parliament held a second vote, as the first one did not achieve an absolute majority.