German Chancellor Friedrich Merz is standing by his vow to stay in office after his party suffered two more regional election defeats and was voted out of a state legislature in a humiliating first.