Friedrich Merz has become Germany's new chancellor after winning a second vote in the country's parliament.