Israel informed the US about its latest attack on Gaza before it happened, according to the White House.