Calif. deal ‘foolish,' Trump tells automakers