Prime Minister Benjamin Netanyahu, hours before facing a likely defeat in the Israeli parliament, withdrew his request for official immunity from prosecution on corruption charges Tuesday, giving up a controversial gambit to shield himself from legal peril a month before a national election.