Labor's climate emergency motion fails