Hundreds of thousands of people have made dangerous journeys north — and now they're being turned away at two borders.