The bill would block a presidential policy to "contain" Iran if it develops nuclear weapons capability.