President Biden on Friday praised port workers for speeding up supply chains and said his legislative agenda would cut families’ monthly costs as he grapples with inflation that rose to a new 40-year high in May and remains a huge drag on his presidency.