A bill that aims to help create more affordable housing in Connecticut was approved by the state Senate late Thursday night.