Refinery to pay the state for not meeting enviromental standards