Stanford rallies to beat Louisville, reach Final Four