DETROIT, May 7 — Senator Barack Obama of Illinois delivered a stern message to Detroit auto companies on Monday, saying they had done little to lessen the nation’s dependence on foreign oil and needed to improve the fuel efficiency of their vehicles.