Exclusive: project becomes an increasingly vexed state election issue as the mining union threatens to withdraw support for the party