The Supreme Court on Friday pulled up the governments of Delhi and Uttar Pradesh for failing to stop pollutants from flowing into Yamuna from the national Capital and Noida.