JERUSALEM —After weeks of tough bargaining, Israeli Prime Minister Benjamin Netanyahu has reached a coalition agreement with his two major partners, politicians said, paving the way for the formation of a new Israeli government days before a visit by President Obama.