Amarinder hails legislators for keeping govt on its ‘toes’