US President Donald Trump has instructed his administration's lawyers to seek clarification on how the government can "legally fund" the food stamp benefits during the shutdown after two US federal judges ruled to tap into the emergency funds to cover benefits for November.