Government funding expired at midnight after Senator Rand Paul of Kentucky held up the Senate’s vote on a budget deal that would keep federal agencies open.