TEL AVIV — President Biden visited Israel on Wednesday in a historic show of solidarity with an ally during wartime and promised to redouble American military assistance to the country, even as he urged Israelis not to surrender to “all-consuming rage” following this month’s unprecedented attacks by Hamas.