A decision to shut down a rubbish dump in Wakefield could lead to “long-term environmental pollution risks” for decades, a public inquiry heard.