The unexpected failure of the Labor Party in the Federal Election has seen the party leader, Bill Shorten, step down.