WASHINGTON—The Trump administration took aim at a consumer finance regulator created after the 2008 financial crisis, backing a legal effort to have the structure of the Obama-era agency declared unconstitutional.

The Justice Department, now under Trump administration leadership, filed court papers on Friday opposing the Consumer Financial Protection Bureau, an independent regulator, asking a federal appeals court to order the restructuring of the agency.

...