WASHINGTON — A federal judge on Thursday ruled the Obama administration was improperly funding a subsidy program of the Affordable Care Act, a victory for House Republicans who took the unprecedented action nearly two years ago to sue the White House.