In an embarrassing setback for President Barack Obama, a federal appeals court panel ruled Friday that he violated the Constitution in making certain recess appointments and moved to curtail a chief executive's ability in the future to circumvent the Senate in such scenarios.