The government will look into rules on the number of electric vehicles carmakers must produce each year, Rachel Reeves has announced.