Governor O'Malley inks bill that will legalize same-sex unions