Was this bill proposed solely for western gibs or was there a secular motive behind it?
From what I understand, the bill was pushed behind the scene by the Norwegian and Netherland governments through the funds they provide to Somalia from the EU's overall funding. The head of parliament in Netherlands - who is Lesbian - was reported in the Somali media to show up in Somalia in order to promote this bill.
Somalis who have been involved in both TFG and current FGS also convey that ever since the Somali government was established, UNSOM and EU were pushing this bill. So this is not the first time.