The Allan government has blocked an opposition bid to scrap suspended sentences for child sex offenders.