The new opposition-dominated congress swore in three lawmakers barred by the Supreme Court from taking their seats, setting up a confrontation with the ruling socialists in this oil-exporting nation mired in deep economic troubles.

The three had not been seated Tuesday when the opposition took control of the National Assembly for the first time in 17 years but congressional leaders swore them in Wednesday as the body’s first act of official business.