MSPs voted to pass the
Criminal Justice and Licensing Bill
at decision time on 30 June 2010.
Earlier in the debate, Justice Secretary Kenny MacAskill called on Holyrood to back the legislation.
Mr MacAskill said the legislation would comprehensively reform and strengthen Scotland's justice system.
Labour justice spokesman Richard Baker said the presumption against prison sentences of three months or less and the rejection of mandatory six-month jail terms for anyone caught carrying a knife meant his party could not support the "flawed legislation".
The sentencing proposals meant the Scottish government had "turned its back on those campaigning on knife crime", according to the Conservative MSP and convener of the Justice Committee, Bill Aitken.
Liberal Democrat justice spokesman Robert Brown said the legislation was a "liberal bill" and contained significant measures which his party backed.
The justice secretary said the Conservatives and Labour would try to vote down measures that would make Scotland's communities safer, because they had not "got their way".
During the consideration of amendments to the bill, in the afternoon session, SNP MSP Sandra White's call for a special licence for lapdancing clubs was rejected.
In the morning session of consideration of amendments to the legislation, Holyrood passed a variety of measures including the age of prosecution, stalking and the creation of a new sentencing council.