The Greens have defied intense lobbying from former leaders Bob Brown and Christine Milne and voted against a Nationals motion to kill off the scheme, but three of its senators crossed the floor.