Exclusive: former environment minister rejected department advice and approved Yeelirrie mine day before election called