Israel 's highest court has upheld the government 's plan to withdraw from all of the Gaza Strip and four small West Bank settlements .