Conservative leader Friedrich Merz secures German government coalition after months of political drift