Philippe Coutinho and Neymar both struck in stoppage time to earn Brazil their first win at the 2018 World Cup as they beat Costa Rica 2-0 to edge towards the last 16.