Turkish forces and Syrian rebels have driven out the Islamic State of Iraq and the Levant (ISIL) group from its remaining territory along the Syrian-Turkish border, Binali Yildirim, Turkey's prime minister, has said.