The outgoing Palestinian parliament has given Palestinian leader Mahmoud Abbas new powers just days before the Islamic militant group Hamas comes to power .