Environmental Regulation, Resource Misallocation, and Ecological Efficiency