Casemiro came to Brazil’s rescue as they left it late to secure their passage to the World Cup knockout stage with a 1-0 Group G victory over Switzerland.