Wastewater treatment for irrigation