Prime Minister Keir Starmer of Britain said his country would make the move unless Israel agrees to a cease-fire with Hamas.