WASHINGTON — Corey Statham had $46 in his pockets when he was arrested in Ramsey County, Minn., and charged with disorderly conduct. He was released two days later, and the charges were dismissed.

But the county kept $25 of Mr. Statham’s money as a “booking fee.” It returned the remaining $21 on a debit card subject to an array of fees. In the end, it cost Mr. Statham $7.25 to withdraw what was left of his money.

The Supreme Court will soon consider whether to hear Mr. Statham’s challenge to Ramsey County’s fund-raising efforts, which are part of a national trend to extract fees and fines from people who find themselves enmeshed in the criminal justice system.

Kentucky bills people held in its jails for the costs of incarcerating them, even if all charges are later dismissed. In Colorado, five towns raise more than 30 percent of their revenue from traffic tickets and fines. In Ferguson, Mo., “city officials have consistently set maximizing revenue as the priority for Ferguson’s law enforcement activity,” a Justice Department report found last year.