President Donald Trump signed two bills into law Oct. 10 that allow pharmacists to tell patients if their drugs are cheaper if they forgo insurance at the pharmacy counter.

Before the bills became law, most pharmacists couldn’t legally tell customers whether their drugs were cheaper without insurance unless customers directly asked. The problem is created by contracts that insurance plans and their pharmacy benefit managers enter into with pharmacies.

Trump expects consumers will start seeing an “immediate impact” on prices...