Victorian politicians passed the state's toughened new bail laws overnight after a marathon debate in parliament.