Protecting dogs from weather extremes is aim of proposed legislation