WASHINGTON — The House of Representatives voted Friday to rebuke President Obama for continuing to maintain an American role in NATO operations in Libya without the express consent of Congress, and directed the administration to provide detailed information about the cost and objectives of the American role in the conflict.

The resolution, which passed 268 to 145, was offered by Speaker John A. Boehner, Republican of Ohio, to siphon off swelling Republican support for a measure sponsored by Representative Dennis J. Kucinich, an Ohio Democrat, which calls for a withdrawal of the United States military from the air and naval operations in and around Libya.

The resolution criticizing the president passed with the support of 45 Democrats and all but 10 of the Republicans who were present. The measure from Mr. Kucinich, one of the most liberal members of the House, later failed by 148 to 265, with 87 Republicans voting in favor.

As a legislative matter, Mr. Boehner’s resolution has no practical effect, and is little more than an expression of opinion. A decision by the Supreme Court more than two decades ago suggested that Congress is not empowered to enforce a resolution or other directive that, unlike a bill, the president has no chance to veto.