President Biden is optimistic but says bringing inflation down will take time