The leaders used the visit to launch a blistering attack on the government.