Uttar Pradesh Chief Minister Yogi Adityanath launched a sharp attack on the Samajwadi Party and the Congress over the Ram Temple issue during a public event in Rampur.