A Plaid Cymru Senedd Member has welcomed a decision to turn down an industrial-sized solar farm on a delicate ecological habitat for rare species.