A British minister who was the first Muslim woman to sit in the Cabinet has resigned over the the government's policy on Gaza.