WASHINGTON — In a 5-to-4 decision that broke along ideological lines, the Supreme Court on Monday ruled that courts violate the Constitution when they rely on current federal sentencing guidelines if those guidelines call for harsher punishment than the ones in place at the time of the offense.