A federal court directed the U.S. Environmental Protection Agency to review and possibly update its regulations on oil and gas waste, in a decision that was welcomed by environmental groups who had sued the agency, claiming its rules have failed to keep pace with the fracking boom.