B.C. upholds certificates for two controversial mines