There, the Supremes ruled that a cop, or Sheriff's deputy, does have the right to ask anyone they pull over for "papers", - and/or ask them how they entered the country.
And this was a unanimous decision.
thanks...good reference and something to read.