By FAA regulations, commercial flights can't take off in the US without functioning ashtrays in the restrooms.
Apparently the thought is: better a smoking cheater stubbing it out in the loo ashtray than hiding a burning ember in the seat backs.
In San Francisco, you can still find buildings where the elevators have ashtrays, though usually the actual tray is gone.