The demolition of Allianz Stadium in Sydney will go ahead after a legal bid to stop it failed.