Feds 'could have repealed' all refugee care, federal lawyer tells court