Lindsey Graham signals path to defuse funding threat