Arab leaders have backed a postwar plan for Gaza allowing Palestinians to remain, in a counterproposal to Donald Trump's vision of a beach destination.