French president signs same-sex marriage bill into law