NASCAR passes rule requiring drivers to stay in car