The Israeli security cabinet has approved Benjamin Netanyahu's plan to take military control of Gaza City, the prime minister's office has said.