Japan stage another extraordinary World Cup comeback to reach the last 16, with Spain fortunate to join them in the knockout stage.