A controversial measure that would make most abortions illegal in Iowa after a fetal heartbeat is detected has passed in the Iowa House and Senate.