JERUSALEM—Israel’s president handed Prime Minister Benjamin Netanyahu the difficult task on Tuesday of trying to form a government from the country’s splintered parliament, giving the embattled leader a chance to prolong his lengthy term in office while he stands trial on corruption charges. In his announcement, President Reuven Rivlin acknowledged that no party leader had…