hardwiring lights to a 20 amp circuit
There should be no problem doing what you want to do. These smaller wires are called "fixture wires". They're allowed to be smaller than the rest of the wiring on the circuit, because the manufacturer knows the device will consume less current than the wires can handle.