More than 1 million refugees crossed the western border into Poland, where authorities are struggling to provide essentials.