Scotland will play USA in the World Rugby U20 final on Wednesday after both teams topped their respective pools with wins over Japan and Kenya.