Just to be clear, there is nothing illegal about doing training at night, it's just not prefered for student pilots because we're trying to get you to look outside the cockpit!!!
I will agree with your instructor that if you can't get lessons in/done before dark, it's better to do them when you can in daylight.