President Barack Obama expressed cautious optimism about the capping of the oil gusher in the Gulf of Mexico.