Stimulus bill requires states to update energy codes