Two federal judges have ruled that the Trump administration must fund the US's biggest food aid program, SNAP, during the federal shutdown.