FDA approval costs for generic drugs are high and getting worse for complex formulations. Delays cost patients billions and hurt competition. Here’s how the system works-and what’s being done to fix it.