State lawmakers approved a bill banning abortions when a fetal heartbeat can be detected and the Democratic governor is expected to sign the legislation.