While Republicans have blamed Obama-era environmental regulations for the loss of coal jobs, federal data show that U.S. mines have been losing jobs for decades under presidents from both parties because of automation and competition from natural gas and because solar panels and wind turbines can produce emissions-free electricity cheaper than burning coal.