President Barack Obama praised lawmakers for working quickly to pass the bill .