Economy Minister Conor Murphy will quit his job at Stormont after being elected to the Irish parliament's upper chamber.