Prime Minister Shigeru Ishiba made a political gamble, and it backfired, leaving a weakened ruling party.